import './assets/main.scss'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router/index.js' //路由默认可以访问/index,所以没有写全 
import {createPinia} from 'pinia'
import locale from 'element-plus/dist/locale/zh-cn.js'


import {createPersistedState} from 'pinia-persistedstate-plugin'

const persiste=createPersistedState();
const pinia=createPinia();
const app=createApp(App);
app.use(ElementPlus,{locale})
app.use(router);

pinia.use(persiste);
app.use(pinia);

app.mount('#app')



